Estimated read time: 3 minutes
Writer has some support for interdependent (or hierarchical) tracked changes: e.g. the case when you have a delete on top of an insert. See the second post for background.
This work is primarily for Collabora Online, but the feature is available in desktop Writer as well.
Motivation¶
With the already mentioned improvements in place, the area of format redlines with character style or direct formatting changes were still lacking: Writer's original model here was just marking a text range as "formatted" and then either accept the format redline as-is, or reject reverting back to the paragraph style (default formatting), losing the old character style or old direct formatting.
Results so far¶
Here is a sample case of a document where the old character style is Strong (~bold) and the font size is 24pt, while the new character style is Quote (~italic) and the font size is 36pt. The rest of the document uses no specific character styles and has the font size of 12pt:
Rejecting that format redline resulted in just the defaults, i.e. no character style and 12pt font size:
But now we track the old character style & direct format:
This required changes in the DOCX import, ODF import and ODF export, too.
How is this implemented?¶
If you would like to know a bit more about how this works, continue reading... :-)
As usual, the high-level problem was addressed by a series of small changes. Core side:
- sw: document DocumentRedlineManager
- sw: document IDocumentRedlineAccess
- sw doc model xml dump: show the item set of a format redline
- tdf#166319 sw interdependent redlines: fix redo of accept of ins-then-fmt's fmt
- tdf#166319 sw interdependent redlines: handle deleting a self ins-then-fmt
- tdf#166319 sw interdependent redlines: fix redo of reject of del-then-fmt's fmt
- tdf#167194 sw redline reinstate: fix handling of self-inserts
- tdf#167761 sw format redline: register the item set in the autostyle pool
- tdf#167761 sw format redline: implement ODF export
- tdf#167761 sw format redline, char props: implement ODF import
- tdf#167761 sw format redline, char style: implement DOCX import
- tdf#167761 sw format redline, char style: implement ODF import
- tdf#167761 sw format redline, char style: fix missing encode in ODF filter
- tdf#167761 sw format redline, char style+direct: add ODT export
- tdf#167761 sw format redline, char style+direct: add ODT import
Want to start using this?¶
You can get a development edition of Collabora Online 25.04 and try it out yourself right now: try the development edition. Collabora intends to continue supporting and contributing to LibreOffice, the code is merged so we expect all of this work will be available in TDF's next release too (26.2).